//
//  HYOUMyViewController.m
//  BestGift
//
//  Created by 温晓宇 on 16/1/15.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "HYOUMyViewController.h"
#import "HYOUMyView.h"
@interface HYOUMyViewController ()<HYOUMyViewDelegate>

@end

@implementation HYOUMyViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    HYOUMyView *my = [[HYOUMyView alloc] initWithFrame:CGRectMake(0, 0, WIDTH, HEIGHT)];
    [self.view addSubview:my];
    my.delegate = self;
    
}
-(void)popMyView{
    [self.navigationController popToRootViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
